<script>
	// 小程序 新版本更新方式
	import updateManager from "@/utils/miniAppUpdateManager";
	export default {
		onLaunch: function() {
			// #ifdef MP-WEIXIN
				updateManager();
			// #endif
			console.log('onLaunch');
			// 
			
			// const RoleKey = uni.getStorageSync('sc-role-key');
			// const token = uni.getStorageSync('sc-token');
			// if (RoleKey && [2, 4].includes(RoleKey) && token) {
			// 	switch (RoleKey){
			// 		case 2:
			// 			this.$goPage({ url: '/pages/artisan-admin/index' }, 'reLaunch')
			// 			break;
			// 		case 4:
			// 			this.$goPage({ url: '/pages/store-admin/index' }, 'reLaunch')
			// 			break;
			// 	}
			// }
		},
		onShow: function() { 
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	// @import "@/uni_modules/uview-ui/index.scss"; 
	@import "@/common/css/global.scss";
	@import "@/common/css/btn.scss";
	@import "@/common/css/flex.css";
	@import "@/common/css/border.scss";
	@import "@/common/css/border-radius.css";
	@import "@/common/css/flex.css";
	@import "@/common/css/font-size.css";
	@import "@/common/css/height.css";
	@import "@/common/css/margin.css";
	@import "@/common/css/padding.css";
	@import "@/common/css/width.css";
	
	page {
		background: #eaedf2;
	}
	
</style>
